package com.koron.auth.service;

import com.koron.bean.base.Response;
import com.koron.bean.logBean.LoginLogBean;
import com.koron.bean.system.staff.dto.OutStaffBean;
import com.koron.common.core.feignConfig.FeignFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @ClassName AuthService
 * @description
 * @Author zhouj
 * @Date 2021/7/14 20:09
 */
@FeignClient(value = "eam-service-system", fallbackFactory = FeignFallbackFactory.class)
public interface StaffService {

    @GetMapping("/system/staff/queryStaffInfo")
    Response queryStaffInfo(@RequestParam("account") String account);

    @PostMapping("/system/staff/saveLoginLog")
    Response saveLoginLog(@SpringQueryMap LoginLogBean loginLogBean);

    @PostMapping("/system/staff/outStafflogin")
    Response<Object> outStafflogin(@SpringQueryMap OutStaffBean outStaffBean);
}
